package com.wcfsy.wechat.wx.um.service;

import java.util.List;
import java.util.Map;

import com.wcfsy.wechat.wx.exception.ServiceException;
import com.wcfsy.wechat.wx.pagination.IPage;
import com.wcfsy.wechat.wx.um.entity.Permission;

public interface IPermissionService {
	public Long add(Permission permission) throws Exception;

	public boolean deleteById(long id) throws Exception;

	public void update(Permission permission) throws Exception;

	public Permission getById(long id);

	public Permission getByPermissionName(String paramString);

	@Deprecated
	public IPage<Permission> findByParam(Map<String, Object> paramMap,
			int paramInt1, int paramInt2);

	public List<Permission> findByParam(Map<String, Object> paramMap);

	@Deprecated
	public IPage<Permission> findAll(int paramInt1, int paramInt2);

	// public List<Role> getRoleListByPermissionId(long id);

	public List<String> getPermisCodeList(Map<String, Object> paramMap);

	public List<String> queryPermis(List<Long> paramList);

	public List<Permission> queryPermisByPermisCode(String paramString);


	public List<Permission> queryPermisByParam(Map<String, Object> paramMap);

	public void batchInsertPermis(List<Permission> paramList)
			throws ServiceException;
}
